import 'package:flutter/material.dart';
import 'package:pizza_test/3d/home.dart';
import 'package:pizza_test/screen/home.dart';
import 'package:pizza_test/tab_animation/tab_animation.dart';

void main() => runApp(MyApp());

class MyApp extends StatelessWidget {
  // This widget is the root of your application.
  @override
  Widget build(BuildContext context) {
    
    return MaterialApp(
      title: 'Flutter Demo',
      theme: ThemeData(
        primarySwatch: Colors.blue
      ),
      // home: HomeScreen(),
      // home: MainHome(),
      home: TabAnimationBar(
        backgroundColor: Colors.red,
        children: List.generate(4, (index) => Icon(Icons.home)),
        selectedChildren: List.generate(4, (index) => Icon(Icons.image)),
        onPress: (int selected) {
          print(selected);
        },
      )
    );
  }
}


class MainHome extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      body: Container(
        color: Colors.green,
        child: Widght_3D(asset: false, path: "assets/earth.obj",size: Size(300, 300),),
      ),
    );
  }
}
